61 vector to gif
Creating animated GIF from vector data
Inspired by Johannes Uhl's shapefile2gif, I created a vector_to_gif() function in leafmap that makes it much easier to create animated GIF from vector data with only one line of code.
Uncomment the following line to install leafmap if needed.
In [1]:
Copied!
# !pip install -U leafmap
# !pip install -U leafmap
In [2]:
Copied!
import leafmap
import leafmap
In [3]:
Copied!
data = 'https://github.com/giswqs/data/raw/main/us/boulder_buildings.zip'
data = 'https://github.com/giswqs/data/raw/main/us/boulder_buildings.zip'
In [4]:
Copied!
m = leafmap.Map(center=[39.9898, -105.2532], zoom=14)
m.add_vector(data, layer_name='Buildings')
m
m = leafmap.Map(center=[39.9898, -105.2532], zoom=14)
m.add_vector(data, layer_name='Buildings')
m
Out[4]: